import Vue from 'vue'
import App from './App'
import store from './store'
// import VueI18n from 'vue-i18n'
import CONFIG from './config'
Vue.config.productionTip = false

App.mpType = 'app'
Vue.prototype.$store = store

// 1.引入组件
import JuheAll from './components/juhe-all.vue'
import JuheText from './components/juhe-text.vue';
import JuheBook from './components/juhe-book.vue';
// 2.注册组件
Vue.component('juhe-all', JuheAll)
Vue.component('juhe-text', JuheText)
Vue.component('juhe-book', JuheBook)

Vue.config.productuinTip = false
// Vue.use(VueI18n)
// 
// let i18nConfig = CONFIG.i18n
// const i18n = new VueI18n({
// 	locale: store.state.locale || 'zh-CN',
// 	messages: i18nConfig
// })
Vue.use(store)

const app = new Vue({
	// i18n,
	store,
	...App
})
app.$mount()
